// packageG/mycomponent/incomeWithdrawal/incomeWithdrawal.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    datas: {
      type: null
    },
    component_id: {
      type: null
    },
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
     to(e){
       const index = e.currentTarget.dataset.name
       switch (index) {
         case '0':
          // let type = e.currentTarget.dataset.type,
          // id=e.currentTarget.dataset.id;
          wx.navigateTo({
            url:`/packageB/member/income/teamAgentCenter/teamAgentCenter`
            // url: `/packageI/lawyerPlatform/detail/detail?id=${id}&type_name=${type}`
          })
           break;
          case '1':
          wx.navigateTo({
             url:'/packageB/member/income/regionalAgencyCenter/regionalAgencyCenter',
          })
          break;
          case '2':
          wx.navigateTo({
            url: '/packageJ/outArea/outArea',
          })  
          break;
          case '3':
            wx.navigateTo({
              url: '/packageA/member/presentationRecordSuppier/presentationRecordSuppier',
            })  
            break;
          case '4':
              wx.navigateTo({
                url: '/packageA/member/withdrawal/withdrawal',
              })
              break;
       }
     }
  },
  lifetimes:{
    created(){
  
    }
  }
})
